const express = require('express');
const mgController = require('../controller/managerController.js')

const router = express.Router();


router.post('/login',mgController.login)
.get('/users',mgController.getMgByPage)
.post('/users',mgController.addUser)
.put('/users/:uId/state/:stat',mgController.changeState)
.put('/users/:uid',mgController.editUser)
.delete('/users/:uid',mgController.deleteUser)
.put('/users/:uid/role/:rid',mgController.setMgRole)
module.exports = router;